﻿namespace EAI.CommonService.Start
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using EAI.Config;
    using EAI.ServiceHost;

    class Program
    {
        static void Main(string[] args)
        {
            EAIServiceConfig configService = ConfigurationManager.Instance.GetConfig<EAIServiceConfig>(true);

            EAIServiceManager.Instance.Start(configService);

            Console.WriteLine("Press [Enter] to terminate Service.");
          
            Console.Read();

            EAIServiceManager.Instance.Stop(configService);
        }
    }
}
